<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>自定义模块 - layui</title>

		<link rel="stylesheet" href="/static/layui/css/layui.css">

	</head>
	<body>
		<pre class="layui-code" lay-title="JavaScript" lay-height="300px">
			// 引入自定义js文件
			layui.config({
			  base: './js/'
			}).extend({
			  index: 'index'
			  ,test: 'child/test'
			}).use('test');
			layui.use('index')
		</pre>
		<script src="/static/layui/layui.js"></script>
		<script>
			layui.config({
				base: './js/'
			}).extend({
				index: 'index',
				test: 'child/test'
			}).use('test');
			layui.use('index')
		</script>
	</body>
</html>
